<?php

class Header_Model extends CI_Model {
	
    
    // Get info activate
    function GetFooter()
    {        
        $this->db->from('k_footer');
		$this->db->select("*");
		$query = $this->db->get();
		$rs = array();	
		if($query->num_rows() > 0) {
			$rs = $query->result();	
		}
		return $rs;
    }
    
    // Get Content by ID
    function GetContentFooterByID($id)
    {   
        $this->db->from('k_footer_content');
        $this->db->where('id_footer', $id);
        $query = $this->db->get();
        $rs = array();	
		if($query->num_rows() > 0) {
			$rs = $query->result();	
		}
		return $rs;
    }
}